package indi.zhifa.study2024.class002.busy.generalTest.enums.bill;

import com.baomidou.mybatisplus.annotation.EnumValue;
import indi.zhifa.study2024.core.enummemo.entity.ann.EnumDesc;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@EnumDesc(name = "单据状态",desc = "单据状态",defaultIdx = 1,defaultItem = "草稿")
public enum EBillStatus {

    DRAFT(1,"草稿","草稿状态"),
    SUBMIT(2,"已提交","已提交"),
    AUDITED(3,"已审核","已审核"),
    REJECT(4,"已拒绝","已拒绝"),
    CANCEL(5,"取消","取消");

    @EnumValue
    @Getter
    private final int code;
    @Getter
    private final String name;
    @Getter
    private final String desc;
}
